package com.xinqi.modules.sys.dict.convert;

import com.xinqi.common.mapstruct.CommonConvertConfig;
import com.xinqi.modules.sys.dict.domain.DictVersionStageEntity;
import com.xinqi.modules.sys.dict.dto.req.DictVersionStageCreateDTO;
import com.xinqi.modules.sys.dict.dto.req.DictVersionStageUpdateDTO;
import com.xinqi.modules.sys.dict.dto.rsp.DictVersionStageResultDTO;
import org.mapstruct.Mapper;
import org.mapstruct.MappingTarget;

/**
 * 字典-版本学科转换
 *
 * @author: linkai
 * @date: 2023/05/07
 */
@Mapper(config = CommonConvertConfig.class)
public abstract class DictVersionStageConvert {
    public abstract DictVersionStageEntity create(DictVersionStageCreateDTO s);

    public abstract DictVersionStageEntity update(DictVersionStageUpdateDTO s, @MappingTarget DictVersionStageEntity t);

    public abstract DictVersionStageEntity update(DictVersionStageUpdateDTO s);

    public abstract DictVersionStageResultDTO convert(DictVersionStageEntity s);
}
